<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
<title></title>
<link href="<%=path %>/images/style.css" rel="stylesheet" type="text/css" />
       <meta http-equiv="pragma" content="no-cache" />
       <meta http-equiv="cache-control" content="no-cache" />
       <meta http-equiv="expires" content="0" />
       <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
       <meta http-equiv="description" content="This is my page" />
 

       <script language="JavaScript" src="<%=path %>/js/public.js" type="text/javascript"></script>
       <script language="javascript">
           function timuDetail(id)
           {
                 var url="<%=path %>/timu?type=timuDetail&id="+id;
                 var n="";
                 var w="500px";
                 var h="400px";
                 var s="resizable:no;help:no;status:no;scroll:yes";
				 window.location.href=url;
           }
           function timuAdd()
           {
              var url="<%=path %>/tea/timu/timuAdd2.jsp";
              window.location.href=url;
           }
           function timuCreate()
           {
              var url="<%=path %>/timu?type=timuCreate2";
              window.location.href=url;
           }
       </script>
       </head>

<body>

<!--main start -->

<div id="main">
  <jsp:include flush="true" page="/qiantai/inc/incTop2.jsp"></jsp:include>
  
  <!--left panel start -->
  <div id="left">
    <jsp:include flush="true" page="/qiantai/inc/incLeft.jsp"></jsp:include>
  </div>
  <!--left panel end --> 
  <!--right panel start -->
  <div id="right"> 
    <!--rightBotMain start -->
    
    <div class="contactMain"> 
      
      <!--best start --> 
      <!--rightBot start --> 
      <!--rightBot end --> 
      <!--best start -->
      <div id="best1">
        <h2><span>多选题管理 </span></h2>
<table width='98%'  border='0' align="center">
         <tr>
    <td ><form action="<%=path %>/timu?type=timuMana2" name="formAdd" method="post">
        <input type="button" value="添加题目" style="width: 80px;" onclick="timuAdd()" />
        
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="text" name="name" size="20" value="<%if(request.getParameter("name")!=null){out.print(request.getParameter("name"));} %>"/>
        <input  type="submit" value="搜索" />
      </form></td>
  </tr>
       </table>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
         
         <tr align="center" bgcolor="#FAFAF1" height="22">
    <td >课程章节名称</td>
    <td >标题</td>
    <td >分数</td>
    <td >操作</td>
  </tr>
         <c:forEach items="${requestScope.timuList}" var="timu">
    <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
             <td bgcolor="#FFFFFF" align="center"> ${timu.zhangjie_name} </td>
             <td bgcolor="#FFFFFF" align="center"> ${timu.name} </td>
             <td bgcolor="#FFFFFF" align="center"> ${timu.fenshu} </td>
             <td bgcolor="#FFFFFF" align="center"><a href="#" onclick="timuDetail(${timu.id})" class="pn-loperator">查看内容</a> <a class="pn-loperator" href="<%=path %>/timu?type=timuDel2&id=${timu.id}">删除</a></td>
           </tr>
  </c:forEach>
       </table>
<table width='98%'  border='0'style="margin-top:8px;margin-left: 5px;">
         <TR align="right">
    <TD ><form action="" method="post" name="formpage">
        <input type="hidden" name="pageCount" value="${requestScope.pagecount}" />
        <!--//用于给上面javascript传值-->
        <input type="hidden" name="page" value="${requestScope.page}" />
        <!--//用于给上面javascript传值-->
        <input type="hidden" name="jumpurl" value="<%=path%>/timu?type=timuMana2&" />
        <!--//用于给上面javascript传值--> 
        <a href="#" onClick="PageTop()"><strong>首页</strong></a>&nbsp;&nbsp;&nbsp; <a href="#" onClick='PagePre()'><strong>上一页</strong></a>&nbsp;&nbsp;&nbsp;
        共${requestScope.cou}条记录,
        共计${requestScope.pagecount}页,
        当前第${requestScope.page}页&nbsp;&nbsp;&nbsp; <a href="#" onClick="PageNext()"><strong>下一页</strong></a>&nbsp;&nbsp;&nbsp; <a href="#" onClick="PageLast()"><strong>尾页</strong></a> 第
        <input name="busjump" type="text" size="3" value="${requestScope.page}" style=" width:15px"/>
        页<a href="#" onClick="bjump()"><strong>跳转</strong></a>&nbsp;&nbsp;&nbsp;
      </form>
             <script type="text/javascript" src="<%=path%>/js/page.js"></script></TD>
  </TR>
       </table>
        <br class="spacer" />
      </div>
      <!--best end --> 
    </div>
    <!--rightBotMain end --> 
    <!--last panel start --> 
    <!--last panel end --> 
    <br class="spacer" />
  </div>
  
  <!--right panel end --> 
  <br class="spacer" />
</div>
<!--main end --> 
<!--footerMain start -->

<jsp:include flush="true" page="/qiantai/inc/incFoot.jsp"></jsp:include>

<!--footerMain end -->
</body>
</html>
